package chapter08;

import java.util.Scanner;

public class Day12 {
    public static void main(String[] args) {
/*        xy+z=94
        x+yz=95*/
        int x,y,z;

        for (x = 1; x < 100; x++) {
            for (y = 1; y < 100; y++) {
                for (z = 1; z < 100; z++) {
                    if (x*y+z==94&&x+y*z==95){
                        System.out.println( x+"  "+y+"  "+z);
                    }
                }
            }
        }
    }
}
